
package com.huaweicloud.saaslanding.install.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * CCE 资源部署
 *
 * @since 2022-04-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode
@Accessors(chain = true)
public class DeploymentDto {
    // 微服务名：应用名-微服务名字(deployment,service,配置项名)
    private String serviceName;

    // 镜像
    private String swrTag;

    // 是否为前端
    private Boolean isUi;

    // 是否为部署微服务
    private Boolean isDeployment = false;

    // 是否为运维微服务
    private Boolean isMaintenance = false;

    // 是否为集成开发微服务
    private Boolean isIntegrated = false;

    // 组件id
    private Long componentId;

    // 镜像id
    private Long imageId;

    // =============== 前端(CCE配置项) ===============

    private String configName = "saaslanding-demo-ui";

    private String mountPath = "/etc/nginx/nginx.conf";

    private String subPath = "nginx.conf";

    // =============== todo:后端（12个环境变量） ===============
    // 环境名称
    private String profile = "ddd";
    // 注册中心地址
    // 配置中心地址
}
